package com.bkaka.service.impl;

import com.bkaka.dao.ExamChapterDao;
import com.bkaka.entity.ExamChapter;
import com.bkaka.service.ExamChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/3.
 */

@Service
public class ExamChapterImpl implements ExamChapterService {

    @Autowired
    private ExamChapterDao chapterDao;

    @Override
    public List<ExamChapter> findAll() {
        return chapterDao.findAll();
    }

    @Override
    public void create(ExamChapter category) {
        chapterDao.create(category);
    }

    @Override
    public boolean delete(Integer id) {
        return chapterDao.delete(id);
    }

    @Override
    public void update(ExamChapter category) {
        chapterDao.update(category);
    }

    @Override
    public List<ExamChapter> findByChapter(Integer id) {
        return chapterDao.findByChapter(id);
    }
}
